package cn.ch.train.common.request;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class PageRequest {
    @NotNull(message = "【页码pageNo】不能为空")
    private Integer pageNo;

    @NotNull(message = "【每页条数pageSize】不能为空")
    @Max(value = 100, message = "【每页条数pageSize】最大不能超过100条")
    private Integer pageSize;
}
